home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 127 / PC Guia 127.iso / Software / Utils / Fasterfox / Bin / fasterfox-1.0.3-fx.xpi / chrome / fasterfox.jar / content / fasterfox / fasterfoxOverlay.xul < prev    next >
Encoding:
Extensible Markup Language  |  2006-01-16  |  2.2 KB  |  62 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!-- Styles //-->
  4. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  5. <?xml-stylesheet href="chrome://mozapps/skin/pref/pref.css" type="text/css"?>
  6. <?xml-stylesheet href="chrome://browser/skin/pref/pref.css" type="text/css"?>
  7.  
  8. <!-- Locale info //-->
  9. <!DOCTYPE overlay [
  10. <!ENTITY % fasterfoxDTD SYSTEM "chrome://fasterfox/locale/fasterfox.ent">
  11. %fasterfoxDTD;
  12. ]>
  13.  
  14. <overlay id="fasterfoxOverlay"
  15.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  16.  
  17.     <!-- This imports our javascript. //-->
  18.     <script type="application/x-javascript" src="chrome://fasterfox/content/fasterfoxOverlay.js"/>
  19.     <script type="application/x-javascript" src="chrome://fasterfox/content/listener-fasterfox.js"/>
  20.     
  21.     <script type="application/x-javascript">
  22.     <![CDATA[
  23.      window.addEventListener("load", FF_init, false);
  24.      
  25.      //window.top.addEventListener("pageshow", doEnhancedPrefetch, false);
  26.      
  27.      window.addEventListener("load", function() {
  28.         var appcontent = window.document.getElementById("appcontent");
  29.         if (appcontent) {
  30.            appcontent.addEventListener("DOMContentLoaded", doEnhancedPrefetch, false);
  31.         }
  32.      }, false); 
  33.     
  34.      window.addEventListener("unload", FF_uninit, false);
  35.     ]]></script>
  36.    
  37.        <!-- Add Fasterfox Page Load Timer to the Status Bar //-->    
  38.     <popupset id="mainPopupSet">
  39.         <tooltip id="fasterfox-popup" insertafter="backMenu">
  40.             <vbox flex="1">
  41.                    <label id="fasterfox-popup-label" value="&pageload.pageLoadTimer;"/>
  42.                </vbox>
  43.         </tooltip>
  44.         <popup id="fasterfox-context-menu">
  45.             <!-- TODO: Add Current Page to Whitelist -->
  46.             <menuitem label="&pageload.options;" oncommand="ff_openOptions();" />
  47.             <menuitem label="&pageload.hideTimer;" oncommand="ff_showTimer(false);" />
  48.             <menuitem label="&pageload.clearCache;" oncommand="ff_clearCache();" />
  49.           </popup>
  50.     </popupset>
  51.     <statusbar id="status-bar">
  52.         <statusbarpanel id="fasterfox-statusbar" insertafter="page-report-button" tooltip="fasterfox-popup" context="fasterfox-context-menu">
  53.             <hbox>
  54.                 <image src="chrome://fasterfox/skin/icons.png" />
  55.                 <label id="fasterfox-label" value="Fasterfox" />
  56.             </hbox>
  57.         </statusbarpanel>
  58.     </statusbar>
  59.  
  60. </overlay>
  61.  
  62.